﻿Module keyboard
    ' Key Codes
    Public Const KEY_LBUTTON = &H1
    Public Const KEY_RBUTTON = &H2
    Public Const KEY_CANCEL = &H3
    Public Const KEY_MBUTTON = &H4  ' Not contiguous with L & RBUTTON
    Public Const KEY_BACK = &H8
    Public Const KEY_TAB = &H9
    Public Const KEY_CLEAR = &HC
    Public Const KEY_RETURN = &HD
    Public Const KEY_SHIFT = &H10
    Public Const KEY_CONTROL = &H11
    Public Const KEY_MENU = &H12
    Public Const KEY_PAUSE = &H13
    Public Const KEY_CAPITAL = &H14
    Public Const KEY_ESCAPE = &H1B
    Public Const KEY_SPACE = &H20
    Public Const KEY_PRIOR = &H21
    Public Const KEY_NEXT = &H22
    Public Const KEY_END = &H23
    Public Const KEY_HOME = &H24
    Public Const KEY_LEFT = &H25
    Public Const KEY_UP = &H26
    Public Const KEY_RIGHT = &H27
    Public Const KEY_DOWN = &H28
    Public Const KEY_SELECT = &H29
    Public Const KEY_PRINT = &H2A
    Public Const KEY_EXECUTE = &H2B
    Public Const KEY_SNAPSHOT = &H2C
    Public Const KEY_INSERT = &H2D
    Public Const KEY_DELETE = &H2E
    Public Const KEY_HELP = &H2F

    ' KEY_0 thru KEY_9 are the same as their ASCII equivalents: "0" thru "9"
    Public Const KEY_0 = &H30
    Public Const KEY_1 = &H31
    Public Const KEY_2 = &H32
    Public Const KEY_3 = &H33
    Public Const KEY_4 = &H34
    Public Const KEY_5 = &H35
    Public Const KEY_6 = &H36
    Public Const KEY_7 = &H37
    Public Const KEY_8 = &H38
    Public Const KEY_9 = &H39

    ' KEY_A thru KEY_Z are the same as their ASCII equivalents: "A" thru "Z"
    Public Const KEY_A = &H41
    Public Const KEY_B = &H42
    Public Const KEY_C = &H43
    Public Const KEY_D = &H44
    Public Const KEY_E = &H45
    Public Const KEY_F = &H46
    Public Const KEY_G = &H47
    Public Const KEY_H = &H48
    Public Const KEY_I = &H49
    Public Const KEY_J = &H4A
    Public Const KEY_K = &H4B
    Public Const KEY_L = &H4C
    Public Const KEY_M = &H4D
    Public Const KEY_N = &H4E
    Public Const KEY_O = &H4F
    Public Const KEY_P = &H50
    Public Const KEY_Q = &H51
    Public Const KEY_R = &H52
    Public Const KEY_S = &H53
    Public Const KEY_T = &H54
    Public Const KEY_U = &H55
    Public Const KEY_V = &H56
    Public Const KEY_W = &H57
    Public Const KEY_X = &H58
    Public Const KEY_Y = &H59
    Public Const KEY_Z = &H5A

End Module
